package dl.domainmodel.service;

import dl.common.service.iface.RecognitionServiceInterface;
import dl.domainmodel.model.Contract;
import dl.exception.handler.ApplicationException;
import dl.martinfowler.wrapper.MfDate;
import dl.martinfowler.wrapper.Money;

public class RecognitionService implements RecognitionServiceInterface {

	@Override
	public Money recognizedRevenue(long contractNumber, MfDate asOf)
			throws ApplicationException {
		return Contract.find(contractNumber).recognizedRevenue(asOf);
	}

	@Override
	public void calculateRevenueRecognitions(long contractNumber)
			throws ApplicationException {
		Contract.find(contractNumber).calculateRecognitions();

	}

}
